﻿using System;

namespace sharpxbot.Core.Connection
{
    public class Session : ISession
    {
        public Session()
        {
            StartDate = DateTime.Now;
            ID = Guid.NewGuid();
        }

        #region ISession Members

        public Guid ID { get; private set; }

        public DateTime StartDate { get; private set; }

        public DateTime? EndDate { get; private set; }

        public void Close()
        {
            EndDate = DateTime.Now;
        }

        #endregion
    }
}
